package main

import "fmt"

func main () {
	res1 := f1()
	fmt.Println(res1())
	fmt.Println(res1())
	fmt.Println(res1())
	fmt.Println(res1())


}

func f1() (func()int){
	i := 10

	fun := func() int{
		i--
		return i
	}
	return fun
}